package com.kqkj.dyrule.marketing.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MarketingRule {
    //规则id
    private String ruleId;
    //key的字段(多个字段按逗号分隔)
    private String keyByFields;
    //触发事件
    private EventCondition triggerEventCondition;
    //规则匹配推送次数限制
    private int matchLimit;
    //画像属性条件
    private Map<String,String> userProfileConditions;
    //行为组合事件
    private List<EventCombinationCondition> eventCombinationConditionList;
    //是否要注册timer
    private boolean onTimer;
    //定时时间条件
    private List<TimerCondition> timerConditionList;

}
